
package com.idealighter.game.games.horserace.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.horserace.manager.HorseRaceMgr;
import com.idealighter.game.games.horserace.message.ReqFastEnterTableMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(516115)
public class ReqFastEnterTableHandler implements ReqMessageHandler {

  @Inject
  private HorseRaceMgr horse;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqFastEnterTableMsg msg = (ReqFastEnterTableMsg) message;
    horse.fastEnterTable(player, msg.getRoomId());

    return null;
  }
}
